//
//  MZAniBar.h
//  MZAnimationDemo
//
//  Created by Chris Yang on 2016/11/24.
//  Copyright © 2016年 Chris Yang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MZAniBar;
@protocol MZAniBarDelegate <NSObject>

- (void)aniBar:(MZAniBar *)bar itemButtonClickedAtIndex:(NSInteger)index;

@end

@interface MZAniBar : UIView

@property (nonatomic, weak) id<MZAniBarDelegate>delegate;

@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) NSArray<UIButton *> *itemButtonArray;

- (void)resetWithTitleArray:(NSArray<NSString *> *)titleArray;
- (void)resetWithTitleTagDic:(NSDictionary<NSString *, NSNumber *> *)titleTagDic;

- (void)setAllSelected:(BOOL)selected;
- (void)setSelected:(BOOL)selected atIndex:(NSInteger)index;

@end
